package com.game.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author lvhao
 * @since 2020-09-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Shop extends Model<Shop> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id，自动生成")
    private Integer id;

    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    private Integer price;

    /**
     * 物品id
     */
    @ApiModelProperty(value = "物品id")
    private Integer goodId;

    /**
     * 物品数量
     */
    @ApiModelProperty(value = "物品数量")
    private Integer goodNum;

    /**
     * 权限id
     */
    @ApiModelProperty(value = "权限id")
    private Integer jurisdictionId;

    /**
     * 权限时间
     */
    @ApiModelProperty(value = "权限时间")
    private Integer jurisdictionTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
